<?php
error_reporting(E_ALL ^ E_NOTICE);
session_start();
include("../include/function.php");
dbconnect();
?>
<?php
if($_SESSION["loggedin"]==true && $_SESSION["role"]==admin)
{
if(isset($_SESSION[msg]))
{
echo $_SESSION[msg];
unset($_SESSION[msg]);
}
?>

<?php 

$id = $_GET['id'];
$del = deletequery("client","clientid",$id);
/* $delete ="DELETE FROM client WHERE clientid='$id'";
$deleteclient = mysql_query($delete); */
header("Location: client_list.php");
?>
<?php
}
else
{
header("Location: login.php");
}
?>